<template>
    <div>
        <van-nav-bar
        title="协议"
        left-text="返回"
        fixed
        left-arrow
        @click-left="onClickLeft"/>
        <div class="suggest">
            <div v-html="data"></div>
        </div>
    </div>
</template>

<script>

    import { suggestApi } from '../../apis/loginApis'
    export default {
        data(){
            return{
                data:''
            }
        },
        async created(){
            let result = await suggestApi()
            this.data = result.data
        },
        methods:{
            onClickLeft(){
                this.$router.go(-1)
            }
        }
    }
</script>

<style lang="less" scoped>
    p{
        display: block;
        position: fixed;
        height: 50px;
        width: 100%;
        top: 0;
        padding-left: 30px;
        background: #fff;
    }
    .suggest{
        height: calc(100% - 30px);

        overflow-x: hidden;
    }
</style>